package gren2d.core;

import java.awt.geom.Area;
import java.awt.geom.Point2D;
/**
 * Camera is the charged for call
 * all the rendering methods for the
 * scene who calls it
 * 
 * @author PKangu
 *
 */
public class Camera {
	
	public Point2D position;
	public Scene scene;
	public SceneRenderer renderer;
	public Area visibleArea;
	
	public Camera(Scene s) {
		this.scene = s;
		renderer = new SceneRenderer(this);
	}
	
	public void startRender() {
		this.renderer.draw(this.visibleArea);
	}
}
